# The name of the executable to be created
BIN_NAME := app
# Compiler used
CC ?= gcc
# Extension of source files used in the project
SRC_EXT = c
# Path to the source directory, relative to the makefile
SRC_PATH = .
# Space-separated pkg-config libraries used by this project
LIBS =

# General compiler flags
COMPILE_FLAGS = -std=c99
#                  							-std=c99 : 以C99标准编译C语言
COMPILE_FLAGS += -Wall -Wextra
#											-w		 : 禁止所有警告信息
#											-Wall    : 打印调试信息
# 											-Wextra  : 打印一些额外的警告信息
#  											-Werror  : 视警告为错误;出现任何警告即放弃编译.
COMPILE_FLAGS += -g
#											-g       : 支持gdb调试

# Additional release-specific flags
RCOMPILE_FLAGS = -D NDEBUG
# Additional debug-specific flags
DCOMPILE_FLAGS = -D DEBUG

# Add additional include paths
INCLUDES = -I $(SRC_PATH)

# General linker settings
LINK_FLAGS =
# Additional release-specific linker settings
RLINK_FLAGS =
# Additional debug-specific linker settings
DLINK_FLAGS =
# Destination directory, like a jail or mounted system
DESTDIR = /
# Install path (bin/ is appended automatically)
INSTALL_PREFIX = usr/local
